/* gearserial-gui.c -- Gera a interface gráfica
 *
 * Copyright (C) 2007, Diogo F. S. Ramos <diogofsr at gmail.com>
 * GEAR - Grupo de Estudos Avançados em Robótica
 * <http://www.sel.eesc.usp.br/gear>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

/* Includes */
#include "gearserial-gui.h"

/* Defines */
#define GEARSERIAL_GUI_FILENAME "gearserial-gui.gui"

/* Prototypes */
GearSerialGuiWindowMain * gearserial_gui_window_main_new(void);

GearSerialGui *
gearserial_gui_new( void )
{
    GearSerialGui * self;
    self = XMALLOC( GearSerialGui, 1 );

    self->gserial = gearserial_new();
    self->window_main = gearserial_gui_window_main_new();

    return self;
}

int
gearserial_gui_init( GearSerialGui * self )
{
    GtkBuilder *builder = NULL;
    GearSerialGuiWindowMain * window_main = NULL;

    builder = gtk_builder_new();
    gtk_builder_add_from_file( builder,
			       GEARSERIAL_GUI_FILENAME,
			       NULL );

    /* Main Window of the application */
    window_main = self->window_main;
    window_main->window_main = GTK_WINDOW(gtk_builder_get_object( builder,
								  "window_main" ) );
    g_object



    gtk_widget_show_all( GTK_WIDGET( window_main->window_main ) );
    
    return EXIT_SUCCESS;
}

GearSerialGuiWindowMain *
gearserial_gui_window_main_new( void )
{
    GearSerialGuiWindowMain * self = NULL;

    self = XMALLOC( GearSerialGuiWindowMain, 1 );

    return self;
}
